package cn.wsalix.spring.auditing;

import org.springframework.data.domain.AuditorAware;

import cn.wsalix.admin.entity.SysUser;

public class UserAuditorAware implements AuditorAware<SysUser> {

	@Override
	public SysUser getCurrentAuditor() {
		/*
		 * Subject subject = SecurityUtils.getSubject(); Object object =
		 * subject.getPrincipal(); return (SysUser) object;
		 */
		SysUser admin = new SysUser();
		return admin;
	}

}
